﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Money.Data;

namespace Money.Interfaces
{
    public interface ITransactionService
    {
        void CreateTransaction(Transaction item);
        void DeleteTransaction(long id);
        void UpdateTransaction(Transaction item);
        Transaction GetTransactionById(long id);
        List<Transaction> GetTransactions(string orderBy, string orderDirection, int page, int pageSize, out int totalRecords);
        List<Money.Data.Transaction> GetTransactions(int userId, int accountFromId, int accountToId, int transactionType, string payer, string orderBy, string orderDirection, int page, int pageSize, out int totalRecords);
        List<Money.Data.Transaction> GetTransactions(int accountId, int transactionType, string payer, string orderBy, string orderDirection, int page, int pageSize, out int totalRecords);
    }
}
